## # A tibble: 1,523 × 4
##    Country     Code   Year `Cantril ladder score`
##    <chr>       <chr> <dbl>                  <dbl>
##  1 Afghanistan AFG    2022                   1.86
##  2 Afghanistan AFG    2021                   2.40
##  3 Afghanistan AFG    2020                   2.52
##  4 Afghanistan AFG    2019                   2.57
##  5 Afghanistan AFG    2018                   3.20
##  6 Afghanistan AFG    2017                   3.63
##  7 Afghanistan AFG    2016                   3.79
##  8 Afghanistan AFG    2015                   3.36
##  9 Afghanistan AFG    2014                   3.58
## 10 Afghanistan AFG    2011                   4.26
## # ℹ 1,513 more rows

“Please imagine a ladder, with steps numbered from 0 at the bottom to 10 at the top. The top of the ladder represents the best possible life for you and the bottom of the ladder represents the worst possible life for you. On which step of the ladder would you say you personally feel you stand at this time?”

🔢 Table

🌎 Map

📈 Chart

Advanced (Optional) 📈

The following chart demonstrates that it is possible to approximate the functionality of our World in Data grapher for multicountry selection using R, specifically with the crosstalk package and a small amount of custom JavaScript. For more information on how to achieve this, see this Stack Overflow question.

Note that this is not a required task, but rather a showcase of what can be achieved. The code for this will be shared when we provide the solutions for the exercise.

Data source: World Happiness Report

OurWorldInData.org/happiness-and-life-satisfaction | CC BY